package br.unirio.bsi.dsw.AuctionSite.model;

import java.sql.Timestamp;
import java.math.BigDecimal;


/**
 * Essa classe representa uma oferta
 */
public abstract class Oferta 
{
  //
  // atributtes
  //
  @fetch_parameter(sql_order=0, sql_key=true)  
  private Integer ID        = null;

  @fetch_parameter(sql_order=1)  
  private Integer IDUsuario = null;
  
  @fetch_parameter(sql_order=2)  
  private Integer IDAlbum   = null;
  
  @fetch_parameter(sql_order=3)  
  private BigDecimal Bid    = null;

  @fetch_parameter(sql_order=4)  
  private Integer BidOwner  = null;
  
  @fetch_parameter(sql_order=5)  
  private BigDecimal Buyout = null;

  @fetch_parameter(sql_order=6)  
  private Integer BuyoutOwner   = null;
  
  @fetch_parameter(sql_order=7)  
  private Timestamp OfferStart  = null;

  @fetch_parameter(sql_order=8)  
  private Integer OfferDuration = null;

  //
  // methods
  //    
  public Integer getIDAlbum() {
    return IDAlbum;
  }

  public void setIDAlbum(Integer IDAlbum) {
    this.IDAlbum = IDAlbum;
  }  

  public BigDecimal getBid() {
    return Bid;
  }

  public void setBid(BigDecimal Bid) {
    this.Bid = Bid;
  }

  public Integer getBidOwner() {
    return BidOwner;
  }

  public void setBidOwner(Integer BidOwner) {
    this.BidOwner = BidOwner;
  }

  public BigDecimal getBuyout() {
    return Buyout;
  }

  public void setBuyout(BigDecimal Buyout) {
    this.Buyout = Buyout;
  }

  public Integer getBuyoutOwner() {
    return BuyoutOwner;
  }

  public void setBuyoutOwner(Integer BuyoutOwner) {
    this.BuyoutOwner = BuyoutOwner;
  }

  public Integer getID() {
    return ID;
  }

  public void setID(Integer ID) {
    this.ID = ID;
  }

  public Integer getIDUsuario() {
    return IDUsuario;
  }

  public void setIDUsuario(Integer IDUsuario) {
    this.IDUsuario = IDUsuario;
  }

  public Integer getOfferDuration() {
    return OfferDuration;
  }

  public void setOfferDuration(Integer OfferDuration) {
    this.OfferDuration = OfferDuration;
  }

  public Timestamp getOfferStart() {
    return OfferStart;
  }

  public void setOfferStart(Timestamp OfferStart) {
    this.OfferStart = OfferStart;
  }

}
